import Router from 'koa-router'
import { getControllers, regControlers } from '../utils/add.js'
import bodyPaeser from "koa-bodyparser"
import cors from '@koa/cors'

let router = new Router()

router.get('/abc', async (ctx) => {
    ctx.body = '888'
})

export const useControllers = function (app) {
    // app.use(cors())
    // app.use(bodyPaeser())

    // let controllerFiles = getControllers();
    // regControlers(router, controllerFiles);

    app.use(router.routes())
}